<?php
require_once 'inc/fbapp.php';

switch($_GET['view']){

  case 'init':
    if(isset($_GET['auth_token']) && !empty($_GET['auth_token']))
	  //header("Location: {$_GET['next']}");
    require_once 'views/playlist/index.php';
  break;
  case 'track':
    switch($_GET['action']){
      case 'add':
        require_once 'views/track/add/index.php';
      break;
      case 'listen':
        require_once 'views/track/listen/index.php';
      break;
    }
  break;
  case 'release':
    switch($_GET['action']){
      case 'edit':
        
      break;
      case 'listen':
        require_once 'views/release/listen/index.php';
      break;
    }  
  break;	
  case 'artist':
    switch($_GET['action']){
      case 'edit':
        
      break;
      case 'listen':
        require_once 'views/artist/listen/index.php';
      break;
    }   
  break;
  case 'user':
    switch($_GET['action']){
      case 'edit':
        
      break;
      case 'listen':
        require_once 'views/user/listen/index.php';
      break;
    }   
  break;
  case 'playlist':
    require_once 'views/playlist/index.php';
  break;
}

?>
